<?
class HeaderForm extends Form
{
    function __construct(){
        Form::Form('HeaderForm');

        $this->link_css("style/style-rfc.css");
        $this->link_js("javascript/jquery.tinycarousel.js");
        $this->link_js("javascript/rfc-script.js");


    }

    function draw(){
        global $display;
        $display->add("WEB_ROOT",WEB_ROOT);
        $display->add("WEB_DIR",WEB_DIR);
        $display->add("WEB_NAME",WEB_NAME);
        // menu
        $menu = Db_Menu::getMenus('','(`status`=1)  ORDER BY pos ASC');
        $display->add('menu',$menu);
        // bannerr
        $banner = Db_Banner::getBanners('','(`status`=1) AND (`type`=1)  ORDER BY pos ASC');
        $display->add('banner',$banner);
        $display->output('Header');
    }
    
    /************************************************
     * Submit đăng nhập user
     ************************************************
     */
	function on_submit(){
        //Submit by javascript header.js
    }
}
?>